﻿/// <reference path="jquery/jquery-1.9.1.js" />
/// <reference path="plugins/myphotato.custom.fn.js" />
/// <reference path="global-variables.js" />


var main = {
    init: function () {
        var $footercontent = $("#footer-content");
        $footercontent.load("../pages/footer.html");
        main.loadhtml();
    },
    loadhtml: function () {
        
        var $bodycontent = $("#body-content");
		var $bodycontainer = $("#body-container");
        var urlvars = $.getUrlVars();
        var page = urlvars["page"];
		var pageType = urlvars["ptype"];
        var bodycontentheigh;

        $bodycontent.load("../pages/" + page + "." + (pageType == "p" ? "php" : "html"));
		$bodycontainer.css("height", $.getDocHeight()-headerheight);
        /*if (page == 'aboutus') {
            $bodycontent.css("height",Math.abs((footerheight+headerheight)-$.getDocHeight()))
        }*/
		$bodycontent.css("width", "800px");	
		$bodycontent.css("min-height", "800px");	
		switch(page){
			case "albums": 
			break;
			case "aboutus":
			break;
			case "packages":
				$bodycontent.css("width", "800px;");
				$('#txt-name').watermark('Enter Name');

			break;
		}
		
		var navlinks = $(".nav-links");
		
		navlinks.on("click", function(){
			var me = $(this);
			me.animate({
				'color':'#111111',
				'font-weight':'bold',
				'font-size':'25px',
				'text-shadow':'0px 1px 0px rgba(102,102,102,1)'
			}, 250);
			
			me.animate({
				'color':'#999999',
				'text-shadow': '0px 1px 0px rgba(0,0,0,1)'
			},250);
			
		}).on("mouseover", function(){
			var me = $(this);
			me.animate({
				'color':'#999999',
				'text-shadow': '0px 1px 0px rgba(0,0,0,1)'
			}, 250);
		}).on("mouseout", function(){
			var me = $(this);
			me.animate({
				'color':'#111111',
				'text-shadow':'0px 1px 0px rgba(102,102,102,1)'
			}, 250);
		});

    }
}

$(document).ready(function () {
    main.init();
});

//4144539535477/photos?access_token=BAACEdEose0cBAC0Yg8RAVD4THV4L5KCFv5glrbQcVtwHW2c8JPOKZBl1U4NOXBv8nrizZAHPZBu8PrcEiYwfQLzfZBodZC6vHAzopC9jNL5jwz1sW6XpXh5N4pTdNMOwVMwttE8cS8KLaZC01cWhbCZAMTso1ijNZC37HySNGUgXnhEQisMtcYK66o6c1LxveYC1sAhgZAypjDmjcV1NNqhQOhijZBs2y8ZCJakyJgaFO5NdAZDZD'